<?php
/**
 * ============================================================================
 * @copyright China International Consulting. 中国国际咨询
 * @version:  v1.0
 * @website   http://www.chinacons.com
 * ---------------------------------------------
 * $Date: 2007.12.17
*/

  $UNT_ID = is_array($_REQUEST["del_id"]) ? implode("," , $_REQUEST["del_id"]) : (int)$_REQUEST["del_id"];
  if (empty($UNT_ID)) exit(0);  

/** 
 * 删除该单位类型
 */
  $query = "DELETE FROM $TBL_UNTY WHERE unt_id IN ( $UNT_ID)";
  $res = mysql_query($query) or die(mysql_error());
  if (!$res)
  {
    MyNotice("删除失败,请与管理员联系",2,"unit_type.php");
    exit(0);
  }
  MyNotice("单位类型已成功删除!",2,"unit_type.php");  
  exit(0);
?>
